<!DOCTYPE html>

<html>
    <head>
        <title>#{get 'title' /}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/main.css'}">
        #{get 'moreStyles' /}
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
        <script src="@{'/public/javascripts/jquery-1.4.2.min.js'}" type="text/javascript" charset="utf-8"></script>
        #{get 'moreScripts' /}
    </head>
    <body>
    <h2>Java Time Conversor</h2>
    <h3>Parameters</h3>
<div class="floatstop">
    	#{form @Application.setFormat()}
        	<label for="content">Format: </label>
        	<input type="text" name="newFormat" id="newFormat" value="${theFormat}"/>
        	<input type="submit" value="Submit" />
		#{/form}   
		<br/>
		#{form @Application.iniFormat()}
			<input type="submit" value="Restore" />
		#{/form}  
</div>
<div class="floatstop">
   		#{form @Application.setTimeZone()}    
        	<label for="content">Zone: </label>
        	<input type="text" name="newTimeZone" id="newTimeZone" value="${theZone}"/>
        	<input type="submit" value="Submit" />
		#{/form} 
		<br/>
		#{form @Application.iniTimeZone()}
			<input type="submit" value="Restore" />
		#{/form}    
</div>
<div class="floatstop">
    	<h3>Java milliseconds to Date</h3>
 
#{form @Application.millisecondsToDate()}
    

        <label for="milliseconds">Milliseconds: </label>
        <input type="text" name="milliseconds" id="milliseconds" />

        <input type="submit" value="Submit" />
Result: ${dateConversion}
#{/form}    
       
        </div>
        <div class="floatstop">
    <h3>Dates to Java millisecond</h3>
    
    #{form @Application.dateTomilliseconds()}
    
        <label for="milliseconds">Date: </label>
        <input type="text" name="date" id="date" />

        <input type="submit" value="Submit" />
Result: ${millisecondsConversion}
#{/form}    
</div>
<div class="floatstop">
<h3>Now</h3>
Date: ${dateConversionNow} Milliseconds: ${millisecondsConversionNow}
</div>
    </body>
</html>
